// ComboDialog.h

#ifndef __COMBO_DIALOG_H
#define __COMBO_DIALOG_H

#include "resource.h"

#include "../../../Common/MyFixes.h"

class CComboDialog: public CDialogImpl<CComboDialog>
{
	public:
		enum { IDD = IDD_DIALOG_COMBO};

	BEGIN_MSG_MAP(CComboDialog)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_SIZE, OnSize)
		COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
		COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
	END_MSG_MAP()
  CComboBox _comboBox;
  LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
	{
		_comboBox.GetWindowText(Value);
		EndDialog(wID);
		return 0;
	}
  LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  LRESULT OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/);
public:
  CString Title;
  CString Static;
  CString Value;
  CStringVector Strings;
  
};

#endif
